This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LanguagePackTest(KALiteDistributedBrowserTestCase): | |
def register_device(self): | |
z = Zone.objects.create(name='test_zone') | |
DeviceZone.objects.create(zone=z, device=Device.get_own_device()) | |
Settings.set("registered", True) | |
def is_language_installed(self,lang_code): | |
flag = False # flag to check language de is installed or not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe Foo do | |
describe "Equality" do | |
it "is reflexive" do | |
foo = Foo.new(1,2) | |
expect(foo).to eq(foo) | |
end | |
describe "is symmetric" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
attr_reader :x, :y | |
def initialize(x,y) | |
@x = x | |
@y = y | |
end | |
def ==(other) | |
if !self.instance_of?(other.class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ‘chef/provisioning' | |
machine 'db' do | |
recipe 'mysql' | |
tag 'itsa_me' | |
converge true | |
end | |
machine 'web1' do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
E.g. Standard 5 -> Mathematics -> Fractions -> Vulgar Fractions -> Rewriting Vulgar Fractions. | |
This could all be exported as a JSON object in this way: | |
{ | |
"title": "Standard 5", | |
"description": "Lorem ipsum", | |
"children": [ | |
{ | |
"title": "Mathematics", | |
"description": "Mathematics for Standard 5", |