test fixed
This commit is contained in:
parent
e72969e99b
commit
01014c68de
1 changed files with 4 additions and 4 deletions
|
@ -91,24 +91,24 @@ class ActivityInheritanceTest(TestCase):
|
||||||
def test_inherites_place(self):
|
def test_inherites_place(self):
|
||||||
self.template_act.place.add(self.loge)
|
self.template_act.place.add(self.loge)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.real_act.get_herited('place').get().name,
|
self.real_act.get_herited('place').get(),
|
||||||
self.loge
|
self.loge
|
||||||
)
|
)
|
||||||
self.real_act.place.add(self.aqua)
|
self.real_act.place.add(self.aqua)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.real_act.get_herited('place').get().name,
|
self.real_act.get_herited('place').get(),
|
||||||
self.aqua
|
self.aqua
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_inherites_tags(self):
|
def test_inherites_tags(self):
|
||||||
self.template_act.tags.add(self.tag_foo)
|
self.template_act.tags.add(self.tag_foo)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.real_act.get_herited('tags').get().name,
|
self.real_act.get_herited('tags').get(),
|
||||||
self.tag_foo
|
self.tag_foo
|
||||||
)
|
)
|
||||||
self.real_act.tags.add(self.tag_bar)
|
self.real_act.tags.add(self.tag_bar)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.real_act.get_herited('tags').get().name,
|
self.real_act.get_herited('tags').get(),
|
||||||
self.tag_bar
|
self.tag_bar
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue