def test_add(self): graph = Graph() data = ['a', 'b', 'c', 123, 456, 'd'] graph.add(vertices=data) self.assertEqual(set(list(graph.adjacency_list.keys())), set([123, 456, 'a', 'b', 'c', 'd']))