Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
test for OptOutStore.count()
Browse files Browse the repository at this point in the history
  • Loading branch information
smn committed Nov 12, 2013
1 parent ec92899 commit b5ec968
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions go/vumitools/opt_out/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,10 @@ def test_opt_outs_for_addresses_with_no_addresses(self):
opt_outs = yield self.opt_out_store.opt_outs_for_addresses(
"msisdn", [])
self.assertEqual(opt_outs, [])

@inlineCallbacks
def test_count(self):
store = self.opt_out_store
yield store.new_opt_out(
"msisdn", "+1234", self.msg_helper.make_inbound("inbound"))
self.assertEqual((yield store.count()), 1)

0 comments on commit b5ec968

Please sign in to comment.