예제 #1
0
파일: test.py 프로젝트: himanshu1273/mergic
 def test_raises_on_duplicates_across_keys(self):
     with self.assertRaises(ValueError):
         mergic.check({1: [1], 2: [1]})
예제 #2
0
파일: test.py 프로젝트: himanshu1273/mergic
 def test_returns_number_of_values(self):
     partition = {1: [1], 2: [2, 3], 3: [4]}
     self.assertEqual(mergic.check(partition), 4)
예제 #3
0
파일: test.py 프로젝트: himanshu1273/mergic
 def test_raises_on_duplicate_in_value_list(self):
     with self.assertRaises(ValueError):
         mergic.check({1: [1, 1]})