File tree 2 files changed +4
-2
lines changed
readthedocs/rtd_tests/tests
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 12
12
from django .contrib .auth .models import User
13
13
from django .core .urlresolvers import reverse
14
14
from django .test import TestCase
15
+ from django .utils import six
15
16
from django_dynamic_fixture import get
16
17
from rest_framework import status
17
18
from rest_framework .test import APIClient
@@ -247,7 +248,8 @@ def test_project_features(self):
247
248
resp = client .get ('/api/v2/project/%s/' % (project .pk ))
248
249
self .assertEqual (resp .status_code , 200 )
249
250
self .assertIn ('features' , resp .data )
250
- self .assertEqual (
251
+ six .assertCountEqual (
252
+ self ,
251
253
resp .data ['features' ],
252
254
[feature1 .feature_id , feature2 .feature_id ],
253
255
)
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class TestNotification(Notification):
80
80
request = mock .ANY ,
81
81
template = 'core/email/common.txt' ,
82
82
context = {'content' : 'Test' },
83
- subject = u'This is 1' ,
83
+ subject = u'This is {}' . format ( build . id ) ,
84
84
template_html = 'core/email/common.html' ,
85
85
recipient = user .email ,
86
86
)
You can’t perform that action at this time.
0 commit comments