def test_pauses_services(self):
     actions.resume([])
     self.resume_unit_helper.assert_called_once_with('test-config')
Ejemplo n.º 2
0
 def test_pauses_services(self):
     actions.resume([])
     self.resume_unit_helper.assert_called_once_with('test-config')
Ejemplo n.º 3
0
 def test_pauses_services(self):
     with patch('actions.config_changed') as config_changed:
         actions.resume([])
         self.resume_unit_helper.assert_called_once_with('test-config')
         config_changed.assert_called_once_with()
 def test_pauses_services(self):
     with patch('actions.config_changed') as config_changed:
         actions.resume([])
         self.resume_unit_helper.assert_called_once_with('test-config')
         config_changed.assert_called_once_with()
Ejemplo n.º 5
0
        )
        if q2 == 'yes':
            ip = input('what is the ip that you dont need to watchlist: ')
            name = input('what is the corresponding username: '******'yes' or 'no'    "
            )
            if q3 == 'yes':
                n.reset_count(ip, name)
                print('you are all set')
            else:
                print('fine')
            ou.output_watchlist()
    elif q1 == 'AddWhite':
        q4 = input('what is the ip that you want to whitelisted: ')
        w.add_whi(q4)
        print('done')
    else:
        q5 = input("What is the ip that you want to look up for: ")
        q6 = input("Do you know the username? No or [username]")
        if q6 == 'No':
            # if just want to look up by ip without knowing username
            a.find_ip(q5)
        else:
            q7 = input('which scope? (successful,Invalid, FAILED')
            if q7 != 'successful' and q7 != 'Invalid' and q7 != 'FAILED':
                print('No messing around, see ya')
            else:
                a.resume(q5, q6, q7)