'Test that a new course can be created whose name is a substring of an existing course'

def test_course_substring(self):

    self.client.ajax_post('/course/', self.course_data)
    cache_current = self.course_data['number']
    self.course_data['number'] = '{}a'.format(self.course_data['number'])
    resp = self.client.ajax_post('/course/', self.course_data)
    self.assertEqual(resp.status_code, 200)
    self.course_data['number'] = cache_current
    self.course_data['org'] = 'a{}'.format(self.course_data['org'])
    resp = self.client.ajax_post('/course/', self.course_data)
    self.assertEqual(resp.status_code, 200)
