def test_you_can_set_and_get_string(self): rbmap = RedblackMap() test_pairs = (('George', 1943), ('Paul', 1942), ('John', 1940), ('Ringo', 1940)) for pair in test_pairs: rbmap.add(pair[0], pair[1]) for pair in test_pairs: self.assertTrue(rbmap.get(pair[0]) == pair[1])
def test_you_can_set_and_get_string(self): rbmap = RedblackMap() rbmap.add('funky', 'monkey') self.assertTrue(rbmap.get('funky') == 'monkey')