Ejemplo n.º 1
0
 def test_get_auth_can_split_user_and_password(self):
     user, password = cli_utils.get_auth('user:password')
     assert user == "user"
     assert password == "password"
Ejemplo n.º 2
0
 def test_get_auth_can_split_user_and_password(self):
     user, password = cli_utils.get_auth('user:password')
     assert user == "user"
     assert password == "password"
Ejemplo n.º 3
0
    def test_get_auth_can_read_password_from_stdin(self, mocked_getpass):
        cli_utils.get_auth('admin')

        mocked_getpass.assert_called_with(
            'Please enter a password for admin: ')
Ejemplo n.º 4
0
    def test_get_auth_can_read_password_from_stdin(self, mocked_getpass):
        cli_utils.get_auth('admin')

        mocked_getpass.assert_called_with(
            'Please enter a password for admin: ')