Exemplo n.º 1
0
 def delete(self):
     DevelopersWriter.delete(self)
Exemplo n.º 2
0
 def test_htpasswd_delete_command(self):
     command = DevelopersWriter.htpasswd_delete_command(self.developer)
     expected = "htpasswd -D " + settings.PASSWORDS_PATH + " realsugar"
     self.developer.assert_has_calls([("login",)])
     self.assertEqual(expected, command)
Exemplo n.º 3
0
 def save(self):
     DevelopersWriter.update(self)
Exemplo n.º 4
0
 def test_htpasswd_update_command(self):
     command = DevelopersWriter.htpasswd_update_command(self.developer)
     expected = "htpasswd -b " + settings.PASSWORDS_PATH + " realsugar A1aaaaa"
     self.developer.assert_has_calls([("login",), ("password",)], any_order=True)
     self.assertEqual(expected, command)