def test_addKeys(self):
     key_name = 'newkey1'
     keys = [key_name]
     attr = Attraction()
     attr._addKeys(keys)
     attr[key_name]
     self.assertEquals(len(attr.attributes()), 2)
Beispiel #2
0
 def test_addKeys(self):
     key_name = 'newkey1'
     keys = [key_name]
     attr = Attraction()
     attr._addKeys(keys)
     attr[key_name]
     self.assertEquals(len(attr.attributes()), 2)
 def test_setName(self):
     attr = Attraction()
     name = 'test_name'
     attr.setName(name)
     self.assertEquals(attr.getName(), name)
Beispiel #4
0
 def test_invalidget(self):
     attr = Attraction()
     attr['invalid_name']
Beispiel #5
0
 def test_setName(self):
     attr = Attraction()
     name = 'test_name'
     attr.setName(name)
     self.assertEquals(attr.getName(), name)
 def test_invalidget(self):
     attr = Attraction()
     with self.assertRaises(Exception):
         attr['invalid_name']