Ejemplo n.º 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)
Ejemplo n.º 2
0
 def test_unmunged_unique_workflow_name(self):
     name = munge_name(self.user.workflow_set, 'Unmunged yet')
     self.assertEquals('Unmunged yet (1)', name)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 5
0
 def test_unmunged_unique_workflow_name(self):
     name = munge_name(self.user.workflow_set, 'Unmunged yet')
     self.assertEquals('Unmunged yet (1)', name)
Ejemplo n.º 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)