def METHOD_NAME(self):
    c = self.create_client(self.default_args)['client']
    self.assertNotIn('BUILD_ROOT', c.get_environment())
    with self.assertRaises(BaseClient.ClientException):
        c.get_build_root()
    c.set_environment('BUILD_ROOT', '/foo/bar')
    self.assertEqual(c.get_build_root(), '/foo/bar')