Esempio n. 1
0
 def test_disjoint_with_accepts_generator_as_matcher_data(self):
     assert_that([1, 2, 3], is_(disjoint_with(i for i in [4, 5, 6])))
Esempio n. 2
0
 def test_disjoint_with_accepts_generator_as_assert_data(self):
     assert_that((i for i in [1, 2, 3]), is_(disjoint_with([4, 5, 6])))
Esempio n. 3
0
 def test_disjoint_with_is_negative_with_same_sequence(self):
     assert_that([1], is_not(disjoint_with([1])))
Esempio n. 4
0
 def test_disjoint_with_is_negative_with_a_partially_different_sequence(self):
     assert_that([1, 2, 3], is_not(disjoint_with([3, 4, 5])))
Esempio n. 5
0
 def test_disjoint_with_is_positive_with_an_entirely_different_sequence(self):
     assert_that([1, 2, 3], is_(disjoint_with([4, 5, 6])))
Esempio n. 6
0
 def test_disjoint_with_is_positive_with_empty_sequences(self):
     assert_that([], is_(disjoint_with([])))