Code Duplication    Length = 23-24 lines in 2 locations

tests/test_create_reply.py 1 location

@@ 44-67 (lines=24) @@
41
        self.assertEqual(_reply, reply)
42
        reply.render()
43
44
    def test_create_reply_with_articles(self):
45
        articles = [
46
            {
47
                'title': 'test 1',
48
                'description': 'test 1',
49
                'image': 'http://www.qq.com/1.png',
50
                'url': 'http://www.qq.com/1'
51
            },
52
            {
53
                'title': 'test 2',
54
                'description': 'test 2',
55
                'image': 'http://www.qq.com/2.png',
56
                'url': 'http://www.qq.com/2'
57
            },
58
            {
59
                'title': 'test 3',
60
                'description': 'test 3',
61
                'image': 'http://www.qq.com/3.png',
62
                'url': 'http://www.qq.com/3'
63
            },
64
        ]
65
        reply = create_reply(articles, render=False)
66
        self.assertEqual('news', reply.type)
67
        reply.render()
68
69
    def test_create_reply_with_more_than_ten_articles(self):
70
        articles = [

tests/test_enterprise_create_reply.py 1 location

@@ 48-70 (lines=23) @@
45
46
        self.assertEqual(_reply, reply)
47
48
    def test_create_reply_with_articles(self):
49
        articles = [
50
            {
51
                'title': 'test 1',
52
                'description': 'test 1',
53
                'image': 'http://www.qq.com/1.png',
54
                'url': 'http://www.qq.com/1'
55
            },
56
            {
57
                'title': 'test 2',
58
                'description': 'test 2',
59
                'image': 'http://www.qq.com/2.png',
60
                'url': 'http://www.qq.com/2'
61
            },
62
            {
63
                'title': 'test 3',
64
                'description': 'test 3',
65
                'image': 'http://www.qq.com/3.png',
66
                'url': 'http://www.qq.com/3'
67
            },
68
        ]
69
        reply = create_reply(articles, render=False)
70
        self.assertEqual('news', reply.type)
71
72
    def test_create_reply_with_more_than_ten_articles(self):
73
        articles = [