Example #1
0
    def test_password_host_chainable(self):
        expected = {
            'pass': '******',
            'host': 'your-mothers-house'
        }

        Accessor.password(expected['pass']) \
                .host(expected['host'])

        self.assertEqual(api.env['host_string'], expected['host'])
        self.assertEqual(api.env['password'], expected['pass'])
Example #2
0
 def test_set_password(self):
     test_pass = '******'
     Accessor.password(test_pass)
     self.assertEqual(api.env['password'], test_pass)