'Test that GET without any parameters returns correct response.'

def test_simple_get(self):

    alice = self.make_participant('alice', claimed_time='now')
    Enterprise = self.make_team('The    Enterprise', is_approved=True)
    Trident = self.make_team('The    Trident', is_approved=True)
    data = json.loads(self.client.GET('~/alice/payment-instructions.json', auth_as='alice').body)
    assert (len(data) == 0)
    alice.set_payment_instruction(Enterprise, '10.0')
    alice.set_payment_instruction(Trident, '12.0')
    data = json.loads(self.client.GET('~/alice/payment-instructions.json', auth_as='alice').body)
    assert (len(data) == 2)
    assert (data[0]['team_slug'] == Trident.slug)
    assert (data[0]['amount'] == '12.00')
    assert (data[0]['team_name'] == Trident.name)
    assert (data[1]['team_slug'] == Enterprise.slug)
    assert (data[1]['amount'] == '10.00')
    assert (data[1]['team_name'] == Enterprise.name)
    for d in data:
        assert ('due' in d)
        assert ('ctime' in d)
        assert ('mtime' in d)
