def test_authorized_keys(self, ssh_dir): ssh_dir.return_value = '/tmp/foo' self.assertEquals(utils.authorized_keys(), '/tmp/foo/authorized_keys') ssh_dir.assert_called_with(None, None) self.assertEquals( utils.authorized_keys('bar'), '/tmp/foo/authorized_keys') ssh_dir.assert_called_with('bar', None)
def test_authorized_keys(self, ssh_dir): ssh_dir.return_value = '/tmp/foo' self.assertEquals(utils.authorized_keys(), '/tmp/foo/authorized_keys')