示例#1
0
 def test_print_header(self):
     
     expected = '-------------------\n Numbers to Names \n-------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '------------------------------\n Password Strength Indicator \n------------------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '----------------------\n Karvonen heart rate \n----------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
 def test_print_header(self):
     
     expected = '------------------------\n Word frequency finder \n------------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_with(expected)
示例#5
0
    def test_print_header(self):

        expected = '-----------------------\n Multiplication table \n-----------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
示例#6
0
 def test_print_header(self):
     
     expected = '---------------------------\n Blood alcohol calculator \n---------------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_with(expected)
示例#7
0
 def test_print_header(self):
     expected = '-------------------------------------\n Calculate area of a rectangle room \n-------------------------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_with(expected)
 def test_print_header(self):
     expected = '----------------------------\n Computing simple interest \n----------------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header('Computing simple interest')
         mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '----------------------------------\n Multistate sales_tax_calculator \n----------------------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '-------------------\n Picking a Winner \n-------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
 def test_print_header(self):
     expected = '----------------------\n currency conversion \n----------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header('currency conversion')
         mocked_print.assert_called_with(expected)
 def test_print_header(self):
     expected_header_text = '-----------\n Mad Libs \n-----------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_once_with(expected_header_text)
 def test_print_header(self):
     expected = '----------------------\n Counting Characters \n----------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '----------------------\n Handling bad inputs \n----------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '--------------------\n Website generator \n--------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '----------------------------------\n Months to Pay Off a Credit Card \n----------------------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
示例#17
0
    def test_print_header(self):

        expected = '---------------------\n Tracking inventory \n---------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '-----------------------------\n Troubleshooting car issues \n-----------------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
示例#19
0
    def test_print_header(self):

        expected = '-----------------------\n Grabbing the weather \n-----------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
示例#20
0
    def test_print_header(self):

        expected = '--------------------\n Filtering records \n--------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
示例#21
0
    def test_print_header(self):

        expected = '------------------------\n Temperature Converter \n------------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
 def test_print_header(self):
     expected = '----------------------\n Password Validation \n----------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_with(expected)
 def test_print_header(self):
     
     expected = '----------------------\n Flickr photo search \n----------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '--------------------\n Legal driving age \n--------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '-----------------------\n Computing Statistics \n-----------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
    def test_print_header(self):

        expected = '---------------\n Magic 8 Ball \n---------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
 def test_print_header(self):
     
     expected = '------------------------\n Employee list removal \n------------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_with(expected)
示例#28
0
    def test_print_header(self):

        expected = '------------------------\n Movie Recommendations \n------------------------\n'
        with patch('builtins.print') as mocked_print:
            app.print_header()
            mocked_print.assert_called_with(expected)
示例#29
0
 def test_print_header(self):
     
     expected = '----------------------\n Parsing a data file \n----------------------\n'
     with patch('builtins.print') as mocked_print:
         app.print_header()
         mocked_print.assert_called_with(expected)