koalalorenzo/python-digitalocean — pull request #40 by andrewsomething (2014-08-10 23:02:36+00:00)
Title: Initial work on a test suite. Currently only tests read actions, but it''s a start.

This is some initial work on writing a test suite. Currently it only tests read actions. That's the easy part, but it''s a start. In the long run, we probably want to mock out the responses instead of using the live server. It actually gets to 55% coverage...

```
Name Stmts Miss Cover Missing
----------------------------------------------------
digitalocean 15 0 100%
digitalocean.Action 35 30 14% 5-13, 16-27, 30-40
digitalocean.Domain 47 32 32% 14, 17-43, 46-49, 55, 61-65, 71-80
digitalocean.Droplet 147 94 36% 35, 42, 45-83, 86-112, 118, 124, 130, 136, 142, 148, 154, 160, 166, 172-174, 180, 186, 192, 198, 204, 210, 216-243, 250, 257-263
digitalocean.Image 37 22 41% 15-44, 50, 56, 63
digitalocean.Manager 167 0 100%
digitalocean.Record 52 44 15% 5-13, 16-49, 55-65, 71, 77-85, 88-97
digitalocean.Region 8 0 100%
digitalocean.SSHKey 47 33 30% 15, 18-50, 53-57, 63-69, 75-81, 87
digitalocean.Size 11 0 100%
----------------------------------------------------
TOTAL 566 255 55%
----------------------------------------------------------------------
Ran 9 tests in 38.767s
```