

def test_empty_creator(self):
    'Show that creator is None when json attribute is empty.'
    json = self.instance.as_dict().copy()
    json['creator'] = None
    milestone = github3.issues.milestone.Milestone(json)
    assert (milestone.creator is None)

dataset/ETHPy150Open sigmavirus24/github3.py/tests/unit/test_issues_milestone.py TestMilestone.test_empty_creator/original