846
846
with patch('subprocess.check_call', autospec=True,
847
847
side_effect=[login_error, None, None]) as cc_mock:
848
848
with maas_account_from_config(config) as maas:
850
850
self.assertEqual(maas.profile, 'mas')
851
851
self.assertEqual(maas.url, 'http://10.0.10.10/MAAS/api/1.0/')
852
852
self.assertEqual(maas.oauth, 'a:password:string')