def as_dict(self):
        return {
            'username': self.username,
            'email': self.email
        }
Verify that when the control service has ``deployment``
dataset/ETHPy150Open mrgambal/vulyk/vulyk/models/user.py/User.as_dict--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/GetDatasetConfigurationTestsMixin._dataset_test