teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

追記

2018/07/15 06:25

投稿

sequelanonymous
sequelanonymous

スコア123

title CHANGED
File without changes
body CHANGED
@@ -19,11 +19,11 @@
19
19
 
20
20
  def test_account_id():
21
21
 
22
- account_id = account_id(id,name)
22
+ account = account_id(id,name)
23
23
  ##ココから下がどう書いていけばよいのかわからない。
24
24
  val = xxxx()
25
25
 
26
- assert account_id == val
26
+ assert account == val
27
27
  ```
28
28
 
29
29
 
@@ -91,4 +91,14 @@
91
91
  '481A8DE5-F0D1-E211-B425-E41F134196DA',
92
92
  )
93
93
  assert version_list(uuids) == [1,3,4,5,None,None,None,None,14]
94
+ ```
95
+
96
+ 自分で書き換えたコード
97
+ ```
98
+ id = 9999
99
+ name = 'testuser'
100
+
101
+ def test_account_id():
102
+ account = account_id(id, name)
103
+ assert UUID(account).version == 4
94
104
  ```