Exemple #1
0
 def test_update_from_flag_copies_presence(self):
     copyable = Flag('wanderer')
     copyable.touch()
     tag = Flag('wanderer')
     tag.update(copyable)
     assert tag.present
Exemple #2
0
 def test_update_from_flag_copies_data(self):
     copyable = Flag('wanderer')
     copyable.append('lost')
     tag = Flag('wanderer')
     tag.update(copyable)
     assert tag.data == ['lost']
Exemple #3
0
 def test_update_with_boolean_assigns_presence(self):
     tag = Flag('wanderer')
     tag.update(True)
     assert tag.present