def test_difference2(self): f1 = {} f2 = {"hello":1} result = ds.get_similarity_score(f1, f2, True) expected = 100 self.assertEqual(result,expected)
def test_similarity4(self): f1 = {"hello":2, "world":1} f2 = {"hello":1, "friends":1} result = ds.get_similarity_score(f1, f2) expected = 40 self.assertEqual(result, expected)
def test_difference1(self): f1 = {"hello":2, "world":1} f2 = {"hello":1, "friends":1} result = ds.get_similarity_score(f1, f2, True) expected = 60 self.assertEqual(result,expected)
def test_similarity2(self): f1 = {} f2 = {"hello":1} result = ds.get_similarity_score(f1, f2) expected = 0 self.assertEqual(result, expected)