'Test that when object does\'t have \'name\' it uses the \'login\' instead.'

def test_for_login_name_when_no_name(self):

    data = json.load(open(CONTRIBUTORS_JSON, 'rb'))
    ht = HumansTXT()
    humans = ht.get_github(data)
    human = Human()
    for h in humans:
        if (h.name == 'chengwang'):
            human = h
    assert (human.name == 'chengwang')
