Example #1
0
 def test_already_munged_called_with_munged_name(self):
     name = munge_name(self.user.workflow_set, 'Munged (1)')
     self.assertEquals('Munged (3)', name)
Example #2
0
 def test_unmunged_unique_workflow_name(self):
     name = munge_name(self.user.workflow_set, 'Unmunged yet')
     self.assertEquals('Unmunged yet (1)', name)
Example #3
0
 def test_unique_name_does_not_get_munged(self):
     name = munge_name(self.user.workflow_set, 'does not exist yet')
     self.assertEquals('does not exist yet', name)
Example #4
0
 def test_already_munged_called_with_munged_name(self):
     name = munge_name(self.user.workflow_set, 'Munged (1)')
     self.assertEquals('Munged (3)', name)
Example #5
0
 def test_unmunged_unique_workflow_name(self):
     name = munge_name(self.user.workflow_set, 'Unmunged yet')
     self.assertEquals('Unmunged yet (1)', name)
Example #6
0
 def test_unique_name_does_not_get_munged(self):
     name = munge_name(self.user.workflow_set, 'does not exist yet')
     self.assertEquals('does not exist yet', name)