diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-07-28 06:39:54 -0700 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-05-11 17:37:57 +0100 |
commit | a24966346e42421fa020cba285af9fc09c89eaa2 (patch) | |
tree | 170fa2acee6ca820ab94fb67ee21d59d2de60a24 /tests | |
parent | b6daeefd92d211b434fc38c0f769fefade49f882 (diff) |
tests/commands/globals: Rename tests to better fit the methods they test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/commands/test_global.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/commands/test_global.py b/tests/commands/test_global.py index 92b48955..60ad7993 100644 --- a/tests/commands/test_global.py +++ b/tests/commands/test_global.py @@ -55,7 +55,7 @@ class TestComposeCommand(unittest.TestCase): account.signature = None return account - def test_apply_sign_by_default_okay(self): + def test_set_gpg_sign_by_default_okay(self): envelope = self._make_envelope_mock() envelope.account = self._make_account_mock() cmd = g_commands.ComposeCommand(envelope=envelope) @@ -65,7 +65,7 @@ class TestComposeCommand(unittest.TestCase): self.assertTrue(envelope.sign) self.assertIs(envelope.sign_key, mock.sentinel.gpg_key) - def test_apply_sign_by_default_false_doesnt_set_key(self): + def test_set_gpg_sign_by_default_false_doesnt_set_key(self): envelope = self._make_envelope_mock() envelope.account = self._make_account_mock(sign_by_default=False) cmd = g_commands.ComposeCommand(envelope=envelope) @@ -75,7 +75,7 @@ class TestComposeCommand(unittest.TestCase): self.assertFalse(envelope.sign) self.assertIs(envelope.sign_key, None) - def test_apply_sign_by_default_but_no_key(self): + def test_set_gpg_sign_by_default_but_no_key(self): envelope = self._make_envelope_mock() envelope.account = self._make_account_mock(gpg_key=None) cmd = g_commands.ComposeCommand(envelope=envelope) @@ -85,7 +85,7 @@ class TestComposeCommand(unittest.TestCase): self.assertFalse(envelope.sign) self.assertIs(envelope.sign_key, None) - def test_decode_template_on_loading(self): + def test_get_template_decode(self): subject = u'This is a täßϑ subject.' to = u'recipient@mail.com' _from = u'foo.bar@mail.fr' @@ -106,7 +106,7 @@ class TestComposeCommand(unittest.TestCase): self.assertEqual(body, cmd.envelope.body) @utilities.async_test - async def test_single_account_no_from(self): + async def test_set_from_single_account(self): # issue #1277 envelope = self._make_envelope_mock() del envelope.headers['From'] |