File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,8 +208,8 @@ func TestWhoamiAll(t *testing.T) {
208208 fmt .Fprintf (w , `{
209209 "email": "test@example.com",
210210 "username": "test",
211- "first_name": "",
212- "last_name": "",
211+ "first_name": "test ",
212+ "last_name": "test ",
213213 "is_superuser": true,
214214 "is_staff": true,
215215 "groups": [],
@@ -222,17 +222,17 @@ func TestWhoamiAll(t *testing.T) {
222222
223223 err = cmdr .Whoami (true )
224224 assert .NoErr (t , err )
225- expected := fmt . Sprintf ( `ID: 0
225+ expected := `ID: 0
226226Username: test
227227Email: test@example.com
228- First Name:
229- Last Name:
228+ First Name: test
229+ Last Name: test
230230Last Login: 2016-09-12T22:15:26Z
231231Is Superuser: true
232232Is Staff: true
233233Is Active: true
234234Date Joined: 2015-09-12T22:15:26Z
235- ` )
235+ `
236236 assert .Equal (t , b .String (), expected , "output" )
237237}
238238
You can’t perform that action at this time.
0 commit comments