Exemplo n.º 1
0
 def test_clan(self):
     flags = Flags(_clan=1)
     flags.clan = True  # No change = no problem
     self.assertTrue(flags.clan)
     self.assertRaises(AssertionError, lambda: setattr(flags, 'clan', False))
Exemplo n.º 2
0
 def test_relation(self):
     flags = Flags(_relation=True)
     flags.relation = True  # No change = no problem
     self.assertTrue(flags.relation)
     self.assertRaises(AssertionError, lambda: setattr(flags, 'relation', False))