Beispiel #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])))
Beispiel #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])))
Beispiel #3
0
 def test_disjoint_with_is_negative_with_same_sequence(self):
     assert_that([1], is_not(disjoint_with([1])))
Beispiel #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])))
Beispiel #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])))
Beispiel #6
0
 def test_disjoint_with_is_positive_with_empty_sequences(self):
     assert_that([], is_(disjoint_with([])))