def test_digits_contain(self):

        self.assertEqual(True,solution.contains_digits(64305, [6, 4, 3, 3, 3, 5]))
        self.assertEqual(True,solution.contains_digits(402123, [0, 3, 4]))
        self.assertEqual(False,solution.contains_digits(666, [6, 4]))
        self.assertEqual(False,solution.contains_digits(123456789, [1, 2, 3, 0]))
        self.assertEqual(True,solution.contains_digits(123456789, []))
        self.assertEqual(True,solution.contains_digits(123456789, [1,1,1,2]))
    def test_digits_contain(self):

        self.assertEqual(True,
                         solution.contains_digits(64305, [6, 4, 3, 3, 3, 5]))
        self.assertEqual(True, solution.contains_digits(402123, [0, 3, 4]))
        self.assertEqual(False, solution.contains_digits(666, [6, 4]))
        self.assertEqual(False,
                         solution.contains_digits(123456789, [1, 2, 3, 0]))
        self.assertEqual(True, solution.contains_digits(123456789, []))
        self.assertEqual(True,
                         solution.contains_digits(123456789, [1, 1, 1, 2]))
Exemple #3
0
 def test_one(self):
     self.assertEquals(True, contains_digits(402123, [0, 3, 4]))
Exemple #4
0
 def test_3(self):
     self.assertEqual(False, solution.contains_digits(123456789, [1,2,3,0]))
Exemple #5
0
 def test_contains_digits1(self):
     self.assertEqual(True, solution.contains_digits(10001, [0, 1]))
Exemple #6
0
 def test_tree(self):
     self.assertEquals(False, contains_digits(123456789, [1, 2, 3, 0]))
Exemple #7
0
 def test_three(self):
     self.assertFalse(contains_digits(123456789, [1, 2, 3, 0]))
Exemple #8
0
 def test_contains_digits4(self):
     self.assertEqual(False, solution.contains_digits(3464, [4, 5]))
Exemple #9
0
 def test_one(self):
     self.assertTrue(contains_digits(402123, [0, 3, 4]))
Exemple #10
0
	def test_contains_digits_2(self):
		self.assertEqual(True, contains_digits(456, []))
	def test_contains_digit_2(self):
		self.assertEqual(False, solution.contains_digits(666, [6,4]))
Exemple #12
0
 def test_1(self):
     self.assertEqual(True, solution.contains_digits(402123, [0, 3, 4]))
	def test_contains_digit_1(self):
		self.assertEqual(True, solution.contains_digits(402123, [0, 3, 4]))
	def test_contains_digit_4(self):
		self.assertEqual(True, solution.contains_digits(456, []))
	def test_contains_digit_3(self):
		self.assertEqual(False, solution.contains_digits(123456789, [1,2,3,0]))
Exemple #16
0
 def test_one(self):
     self.assertTrue(contains_digits(402123, [0, 3, 4]))
Exemple #17
0
 def test_four(self):
     self.assertFalse(contains_digits(456, []))
Exemple #18
0
 def test_three(self):
     self.assertFalse(contains_digits(123456789, [1,2,3,0]))
 def test_true(self):
     self.assertTrue(solution.contains_digits(402123, [0, 3, 4]))
	def test_contains(self):
		self.assertTrue(contains_digits(402123, [0, 3, 4]))
		self.assertTrue(contains_digits(456, []))
 def test_false(self):
     self.assertFalse(solution.contains_digits(666, [6, 4]))
Exemple #22
0
	def test_contains_digits_1(self):
		self.assertEqual(False, contains_digits(666, [6,4]))
Exemple #23
0
 def test_contains_digits1(self):
     self.assertEqual(True, solution.contains_digits(432, [3, 2]))
Exemple #24
0
	def test(self):
		self.assertEqual(True,contains_digits(402123, [0, 3, 4]))
		self.assertEqual(False,contains_digits(666, [6,4]))
		self.assertEqual(False,contains_digits(123456789, [1,2,3,0]))
		self.assertEqual(True,contains_digits(456,[]))
Exemple #25
0
 def test_contains_digits2(self):
     self.assertEqual(False, solution.contains_digits(8213, [2, 4]))
Exemple #26
0
 def test_contains_digits5(self):
     self.assertEqual(False, solution.contains_digits(42, [1, 5]))
Exemple #27
0
 def test_contains_digits(self):
     self.assertEqual(contains_digits(1254, [1, 2, 5, 4]), True)
     self.assertEqual(contains_digits(666, [6, 4]), False)
     self.assertEqual(contains_digits(123456789, [1, 2, 3, 0]), False)
     self.assertEqual(contains_digits(456, []), True)
     self.assertEqual(contains_digits(123456789, [1, 9, 9, 8]), True)
Exemple #28
0
 def test_contains_digits2(self):
     self.assertEqual(True, solution.contains_digits(123332, [2, 1]))
Exemple #29
0
 def test_contains_digits(self):
     self.assertEqual(True, contains_digits(402123, [0, 3, 4]))
     self.assertEqual(False, contains_digits(666, [6, 4]))
     self.assertEqual(False, contains_digits(123456789, [1, 2, 3, 0]))
     self.assertEqual(True, contains_digits(456, []))
Exemple #30
0
 def test_vore(self):
     self.assertEquals(True, contains_digits(456, []))
	def test_contains_digits_2nd(self):
		self.assertEqual("True", solution.contains_digits(402123, [0,3,4]))
Exemple #32
0
 def test_two(self):
     self.assertEquals(False, contains_digits(666, [6, 4]))
Exemple #33
0
 def testing_contains_in_four_number(self):
     self.assertFalse(contains_digits(123456789, [1,2,3,0]))
Exemple #34
0
 def test_4(self):
     self.assertEqual(True, solution.contains_digits(456, []))
Exemple #35
0
 def testin_contains_in_big_number(self):
     self.assertTrue(contains_digits(456, []))
Exemple #36
0
 def test_2(self):
     self.assertEqual(False, solution.contains_digits(666, [6,4]))
Exemple #37
0
 def testing_contains_digits1(self):
     self.assertTrue(contains_digits(402123, [0, 3, 4]))
Exemple #38
0
 def test_four(self):
     self.assertTrue(contains_digits(456, []))
Exemple #39
0
 def testing_contains_in_two_digit_number(self):
     self.assertFalse(contains_digits(666, [6, 4]))
Exemple #40
0
 def test_two(self):
     self.assertFalse(contains_digits(666, [6, 4]))
 def test_contains_digits(self):
     self.assertEqual(contains_digits(1254, [1, 2, 5, 4]), True)
     self.assertEqual(contains_digits(666, [6,4]), False)
     self.assertEqual(contains_digits(123456789, [1,2,3,0]), False)
     self.assertEqual(contains_digits(456, []), True)
     self.assertEqual(contains_digits(123456789, [1, 9, 9, 8]), True)
	def test_not_contains(self):
		self.assertTrue(not contains_digits(666, [6,4]))
		self.assertTrue(not contains_digits(123456789, [1,2,3,0]))
 def test_true(self):
     self.assertTrue(solution.contains_digits(402123,[0,3,4]))
Exemple #44
0
	def test_contains_digits_0(self):
		self.assertEqual(False, contains_digits(402123, [0, 3, 4]))
 def test_false(self):
     self.assertFalse(solution.contains_digits(666,[6,4]))
 def test_contains_digits(self):
     self.assertTrue(contains_digits(402123, [0, 3, 4]))
     self.assertTrue(not contains_digits(666, [6, 4]))
     self.assertTrue(not contains_digits(123456789, [1, 2, 3, 0]))
     self.assertTrue(contains_digits(456, []))
Exemple #47
0
 def test_two(self):
     self.assertFalse(contains_digits(666, [6, 4]))