def test(self): temp_globals, temp_locals, content, output = execfile("lab19/ch019_t08_modi_mem_var.py") expected = f"""new used """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab10/ch010_t07_sending_a_letter.py", globals()) expected = """B """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t09_use_ele_from_list_in_func.py") expected = """5 """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t03_append_to_list.py") expected = """[1, 3, 5, 4] """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab09/ch09_t13_checkout.py", globals()) expected = """5.5 """ self.assertEqual(expected, output)
def test(self): temp_globals, temp_locals, content, output = execfile( "lab13/ch013_t12_for_yr_A.py") expected = """X bird in the hXnd... """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab12/ch012_t03_check_it_twice.py") expected = """[['O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O']] """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t18_list_of_lists_in_func.py") expected = """[1, 2, 3, 4, 5, 6, 7, 8, 9] """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t07_str_in_func.py") expected = """Helloworld """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t06_more_than_one_argu.py") expected = """18 """ self.assertEqual(expected, output)
def test(self): temp_globals, temp_locals, content, output = execfile( "lab19/ch019_t07_create_class_method.py") expected = f"""This is a silver DeLorean with 88 MPG. """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t05_change_functionality_of_func.py") expected = """15 """ self.assertEqual(expected, output)
def test(self): temp_globals, temp_locals, content, output = execfile( "lab13/ch013_t09_for_yr_health.py") expected = """Counting... 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t01_list_accessing.py") expected = """3 """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t08_pass_list_to_func.py") expected = """[3, 5, 7] """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t11_list_manipulation_in_func.py") expected = """[3, 5, 7, 9] """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab13/ch013_t02_condition.py") expected = """I am a loop """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t16_str_in_list_in_func.py") expected = """MichaelLieberman """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t04_remove_from_lists.py") expected = """[3, 5] """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t13_modi_ele_in_list_in_func.py") expected = """[12, 20, 28] """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab11/ch011_t14_pass_range_to_func.py") expected = """[0, 1, 2] """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile("lab11/ch011_t12_print_list_item_by_item_in_func.py") expected = """3 5 7 """ self.assertEqual(expected, output)
def testOutput(self): temp_globals, temp_locals, content, output = execfile( "lab10/ch010_t09_how_is_everybody_doing.py", globals()) expected = """B 83.86666666666666 """ self.assertEqual(expected, output)
def test(self): temp_globals, temp_locals, content, output = execfile( "lab19/ch019_t10_overriding_methods.py") expected = f"""new like new """ self.assertEqual(expected, output)
def test(self): temp_globals, temp_locals, content, output = execfile( "lab18/ch018_t09_they_are_multiplying.py") expected = f"""good good good """ self.assertEqual(expected, output)
def test(self): temp_globals, temp_locals, content, output = execfile( "lab13/ch013_t14_loop_over_dictionary.py") expected = """a apple b berry c cherry """ self.assertEqual(expected, output)
def test(self): temp_globals, temp_locals, content, output = execfile("lab13/ch013_t19_create_yr_own.py") expected = """0 1 2 End """ self.assertEqual(expected, output)
def test(self): temp_globals, temp_locals, content, output = execfile( "lab19/ch019_t06_refer_mem_var.py") expected = f"""new DeLorean silver 88 """ self.assertEqual(expected, output)
def test(self): temp_globals, temp_locals, content, output = execfile("lab13/ch013_t16_mul_lists.py") expected = """3 9 17 15 30 """ self.assertEqual(expected, output)
def test_five(self): temp_globals, temp_locals, content, output = execfile( "lab13/ch013_t07_while_else.py") expected = """Lucky Numbers! 3 numbers will be generated. If one of them is a '5', you lose! 5 Sorry, you lose! """ self.assertEqual(expected, output)