Skip to content

Commit

Permalink
unit test updates for Gmail labels
Browse files Browse the repository at this point in the history
--HG--
branch : stable
  • Loading branch information
Menno Smits committed Jun 7, 2013
1 parent ec5678d commit 1bbf1e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imapclient/test/test_imapclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,15 +418,15 @@ def test_get(self):

def test_add(self):
self.client.add_gmail_labels(sentinel.messages, sentinel.labels)
self.client._store.assert_called_with('+X-GM-LABELS', sentinel.messages, sentinel.labels)
self.client._store.assert_called_with('+X-GM-LABELS', sentinel.messages, sentinel.labels, 'X-GM-LABELS')

def test_remove(self):
self.client.remove_gmail_labels(sentinel.messages, sentinel.labels)
self.client._store.assert_called_with('-X-GM-LABELS', sentinel.messages, sentinel.labels)
self.client._store.assert_called_with('-X-GM-LABELS', sentinel.messages, sentinel.labels, 'X-GM-LABELS')

def test_set(self):
self.client.set_gmail_labels(sentinel.messages, sentinel.labels)
self.client._store.assert_called_with('X-GM-LABELS', sentinel.messages, sentinel.labels)
self.client._store.assert_called_with('X-GM-LABELS', sentinel.messages, sentinel.labels, 'X-GM-LABELS')


class TestNamespace(IMAPClientTest):
Expand Down

0 comments on commit 1bbf1e3

Please sign in to comment.