MCPcopy
hub / github.com/liangliangyy/DjangoBlog / test_utils

Method test_utils

djangoblog/tests.py:10–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8 pass
9
10 def test_utils(self):
11 md5 = get_sha256('test')
12 self.assertIsNotNone(md5)
13 c = CommonMarkdown.get_markdown('''
14 # Title1
15
16 ```python
17 import os
18 ```
19
20 [url](https://www.lylinux.net/)
21
22 [ddd](http://www.baidu.com)
23
24
25 ''')
26 self.assertIsNotNone(c)
27 d = {
28 'd': 'key1',
29 'd2': 'key2'
30 }
31 data = parse_dict_to_url(d)
32 self.assertIsNotNone(data)

Callers

nothing calls this directly

Calls 3

get_sha256Function · 0.85
parse_dict_to_urlFunction · 0.85
get_markdownMethod · 0.80

Tested by

no test coverage detected