def test_delete_versioned_submission(self):
        """Deleting a versioned ``Submission`` should take down all the related
        content"""
        submission_b = self.create_submission(title='b')
        self.parent.update_version(submission_b)
        self.client.login(username='alex', password='alex')
        result = self.client.post(submission_b.get_delete_url(), {})
        assert_equal((Submission.objects.filter(created_by=self.alex_profile)
                      .count()), 0)
        assert_equal((SubmissionParent.objects
                      .filter(submission__created_by=self.alex_profile)
                      .count()), 0)
        assert_equal((SubmissionVersion.objects
                      .filter(submission__created_by=self.alex_profile)
                      .count()), 0)