Example #1
0
 def test_subset_of_disagrees_on_a_subset_sequence(self):
     assert_that([1, 2, 3], is_not(subset_of([1])))
Example #2
0
 def test_subset_of_accepts_generator_as_matcher_data(self):
     assert_that([1], is_(subset_of(i for i in [1, 2, 3])))
Example #3
0
 def test_subset_of_accepts_generator_as_assert_data(self):
     assert_that((i for i in [1]), is_(subset_of([1, 2, 3])))
Example #4
0
 def test_subset_of_agrees_on_a_superset_sequence(self):
     assert_that([1], is_(subset_of([1, 2, 3])))
Example #5
0
 def test_subset_of_same_sequence_is_subset(self):
     assert_that([1], is_(subset_of([1])))
Example #6
0
 def test_subset_of_empty_sequence_is_subset(self):
     assert_that([], is_(subset_of([])))