質問編集履歴

1

追記

2018/07/15 06:25

投稿

sequelanonymous
sequelanonymous

スコア123

test CHANGED
File without changes
test CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
 
42
42
 
43
- account_id = account_id(id,name)
43
+ account = account_id(id,name)
44
44
 
45
45
  ##ココから下がどう書いていけばよいのかわからない。
46
46
 
@@ -48,7 +48,7 @@
48
48
 
49
49
 
50
50
 
51
- assert account_id == val
51
+ assert account == val
52
52
 
53
53
  ```
54
54
 
@@ -185,3 +185,23 @@
185
185
  assert version_list(uuids) == [1,3,4,5,None,None,None,None,14]
186
186
 
187
187
  ```
188
+
189
+
190
+
191
+ 自分で書き換えたコード
192
+
193
+ ```
194
+
195
+ id = 9999
196
+
197
+ name = 'testuser'
198
+
199
+
200
+
201
+ def test_account_id():
202
+
203
+ account = account_id(id, name)
204
+
205
+ assert UUID(account).version == 4
206
+
207
+ ```