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