<s> import copy <EOL> import re <EOL> from random import randint , shuffle <EOL> from tddspry import TestCase <EOL> from tddspry . django import TestCase as DjangoTestCase <EOL> TEST_DICT = { <EOL> '<STR_LIT:key>' : '<STR_LIT:value>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> TEST_ITEM = randint ( <NUM_LIT:1> , <NUM_LIT:10> ) <EOL> TEST_LIST = range ( <NUM_LIT:1> , <NUM_LIT:11> ) <EOL> TEST_NONE = None <EOL> TEST_NOT_REGEXP = re . compile ( '<STR_LIT>' ) <EOL> TEST_NOT_ITEM = - TEST_ITEM <EOL> TEST_REGEXP = re . compile ( '<STR_LIT>' ) <EOL> TEST_SUBSET = { '<STR_LIT:key>' : '<STR_LIT:value>' } <EOL> TEST_TEXT = '<STR_LIT>' <EOL> class TestUnitTest2CamelCaseMethods ( TestCase ) : <EOL> def testAssertMethods ( self ) : <EOL> self . assertGreater ( <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> self . assertGreaterEqual ( <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> self . assertGreaterEqual ( <NUM_LIT:2> , <NUM_LIT:2> ) <EOL> self . assertLess ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> self . assertLessEqual ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> self . assertLessEqual ( <NUM_LIT:2> , <NUM_LIT:2> ) <EOL> self . assertRegexpMatches ( TEST_TEXT , TEST_REGEXP ) <EOL> self . assertNotRegexpMatches ( TEST_TEXT , TEST_NOT_REGEXP ) <EOL> self . assertIn ( TEST_ITEM , TEST_LIST ) <EOL> self . assertNotIn ( TEST_NOT_ITEM , TEST_LIST ) <EOL> self . assertIs ( TEST_NONE , None ) <EOL> self . assertIsNot ( <NUM_LIT:1> , None ) <EOL> self . assertIsNone ( TEST_NONE ) <EOL> self . assertIsNotNone ( <NUM_LIT:1> ) <EOL> self . assertIsInstance ( TEST_ITEM , int ) <EOL> self . assertNotIsInstance ( TEST_ITEM , float ) <EOL> self . assertDictContainsSubset ( TEST_SUBSET , TEST_DICT ) <EOL> self . assertSequenceEqual ( tuple ( TEST_LIST ) , TEST_LIST ) <EOL> sequence = copy . copy ( TEST_LIST ) <EOL> shuffle ( sequence ) <EOL> self . assertItemsEqual ( TEST_LIST , sequence ) <EOL> class TestUnitTest2CamelCaseMethodsDjango ( DjangoTestCase ) : <EOL> def testAssertMethods ( self ) : <EOL> self . assertGreater ( <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> self . assertGreaterEqual ( <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> self . assertGreaterEqual ( <NUM_LIT:2> , <NUM_LIT:2> ) <EOL> self . assertLess ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> self . assertLessEqual ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> self . assertLessEqual ( <NUM_LIT:2> , <NUM_LIT:2> ) <EOL> self . assertRegexpMatches ( TEST_TEXT , TEST_REGEXP ) <EOL> self . assertNotRegexpMatches ( TEST_TEXT , TEST_NOT_REGEXP ) <EOL> self . assertIn ( TEST_ITEM , TEST_LIST ) <EOL> self . assertNotIn ( TEST_NOT_ITEM , TEST_LIST ) <EOL> self . assertIs ( TEST_NONE , None ) <EOL> self . assertIsNot ( <NUM_LIT:1> , None ) <EOL> self . assertIsNone ( TEST_NONE ) <EOL> self . assertIsNotNone ( <NUM_LIT:1> ) <EOL> self . assertIsInstance ( TEST_ITEM , int ) <EOL> self . assertNotIsInstance ( TEST_ITEM , float ) <EOL> self . assertDictContainsSubset ( TEST_SUBSET , TEST_DICT ) <EOL> self . assertSequenceEqual ( tuple ( TEST_LIST ) , TEST_LIST ) <EOL> sequence = copy . copy ( TEST_LIST ) <EOL> shuffle ( sequence ) <EOL> self . assertItemsEqual ( TEST_LIST , sequence ) <EOL> class TestUnitTest2UnderscoreMethods ( TestCase ) : <EOL> def test_assert_methods ( self ) : <EOL> self . assert_greater ( <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> self . assert_greater_equal ( <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> self . assert_greater_equal ( <NUM_LIT:2> , <NUM_LIT:2> ) <EOL> self . assert_less ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> self . assert_less_equal ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> self . assert_less_equal ( <NUM_LIT:2> , <NUM_LIT:2> ) <EOL> self . assert_regexp_matches ( TEST_TEXT , TEST_REGEXP ) <EOL> self . assert_not_regexp_matches ( TEST_TEXT , TEST_NOT_REGEXP ) <EOL> self . assert_in ( TEST_ITEM , TEST_LIST ) <EOL> self . assert_not_in ( TEST_NOT_ITEM , TEST_LIST ) <EOL> self . assert_is ( TEST_NONE , None ) <EOL> self . assert_is_not ( <NUM_LIT:1> , None ) <EOL> self . assert_is_none ( TEST_NONE ) <EOL> self . assert_is_not_none ( <NUM_LIT:1> ) <EOL> self . assert_is_instance ( TEST_ITEM , int ) <EOL> self . assert_not_is_instance ( TEST_ITEM , float ) <EOL> self . assert_dict_contains_subset ( TEST_SUBSET , TEST_DICT ) <EOL> self . assert_sequence_equal ( tuple ( TEST_LIST ) , TEST_LIST ) <EOL> sequence = copy . copy ( TEST_LIST ) <EOL> shuffle ( sequence ) <EOL> self . assert_items_equal ( TEST_LIST , sequence ) <EOL> class TestUnitTest2UnderscoreMethodsDjango ( DjangoTestCase ) : <EOL> def test_assert_methods ( self ) : <EOL> self . assert_greater ( <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> self . assert_greater_equal ( <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> self . assert_greater_equal ( <NUM_LIT:2> , <NUM_LIT:2> ) <EOL> self . assert_less ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> self . assert_less_equal ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> self . assert_less_equal ( <NUM_LIT:2> , <NUM_LIT:2> ) <EOL> self . assert_regexp_matches ( TEST_TEXT , TEST_REGEXP ) <EOL> self . assert_not_regexp_matches ( TEST_TEXT , TEST_NOT_REGEXP ) <EOL> self . assert_in ( TEST_ITEM , TEST_LIST ) <EOL> self . assert_not_in ( TEST_NOT_ITEM , TEST_LIST ) <EOL> self . assert_is ( TEST_NONE , None ) <EOL> self . assert_is_not ( <NUM_LIT:1> , None ) <EOL> self . assert_is_none ( TEST_NONE ) <EOL> self . assert_is_not_none ( <NUM_LIT:1> ) <EOL> self . assert_is_instance ( TEST_ITEM , int ) <EOL> self . assert_not_is_instance ( TEST_ITEM , float ) <EOL> self . assert_dict_contains_subset ( TEST_SUBSET , TEST_DICT ) <EOL> self . assert_sequence_equal ( tuple ( TEST_LIST ) , TEST_LIST ) <EOL> sequence = copy . copy ( TEST_LIST ) <EOL> shuffle ( sequence ) <EOL> self . assert_items_equal ( TEST_LIST , sequence ) </s>
