def test_record_copy(self): original = Record(["name", "empire"], ["Nigel", "The British Empire"]) duplicate = original.copy() assert dict(original) == dict(duplicate) assert original.keys() == duplicate.keys() assert original is not duplicate
def test_record_keys(self): r = Record(["name", "age", "married"], ["Alice", 33, True]) self.assertEqual(r.keys(), ("name", "age", "married"))
def test_record_keys(self): a_record = Record(["name", "empire"], ["Nigel", "The British Empire"]) assert list(a_record.keys()) == ["name", "empire"]