// TestUsers is the entry point for the users tests.
func TestUsers(t *testing.T) {
	c := &app.Context{
		Session:   app.GetSession(),
		SessionID: "TESTING",
	}
	defer c.Session.Close()

	usersCreateRetrieveRemove(t, c)
}
// TestUsers is the entry point for the users tests.
func TestUsers(t *testing.T) {
	c := &app.Context{
		Session:   app.GetSession(),
		SessionID: "TESTING",
	}
	defer c.Session.Close()

	a := routes.API().(*app.App)

	//usersList404(t, a, c)
	usersCreate200(t, a, c)
	usersCreate400(t, a, c)
	us := usersList200(t, a, c)
	usersRetrieve200(t, a, c, us[0].UserID)
	usersRetrieve404(t, a, c, bson.NewObjectId().Hex())
	usersRetrieve400(t, a, c, "123")
	usersUpdate200(t, a, c)
	usersRetrieve200(t, a, c, us[0].UserID)
	usersDelete200(t, a, c, us[0].UserID)
	usersDelete404(t, a, c, us[0].UserID)
}