Skip to content

Commit 08e8611

Browse files
author
Guy Lev
committed
Renaming "does_exist" method
1 parent 955308c commit 08e8611

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mailboxer/mailboxer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_mailbox(self, address):
2828
return Mailbox(self, address)
2929

3030
def does_mailbox_exist(self, address):
31-
return Mailbox(self, address).does_exist()
31+
return Mailbox(self, address).exists()
3232

3333
def _post(self, url, data):
3434
returned = requests.post(url, data=json.dumps(data),
@@ -58,7 +58,7 @@ def get_emails(self, unread = False):
5858
url = self.url.add_path("unread_emails") if unread else self.url.add_path("emails")
5959
return self.mailboxer._get_paged(url, Email)
6060

61-
def does_exist(self):
61+
def exists(self):
6262
url = self.url.add_path("emails")
6363
response = requests.get(url)
6464
if(response.status_code == requests.codes.not_found):

0 commit comments

Comments
 (0)