• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

boto / boto3 / 59
97%
develop: 91%

Build:
Build:
LAST BUILD BRANCH: 1.1.4
DEFAULT BRANCH: develop
Ran 31 Oct 2014 10:08PM UTC
Jobs 5
Files 12
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
59

push

travis-ci

danielgtaylor
Implement resource equality based on identifiers.

This pull request adds two related features. First, it adds resource instance
equality by comparing the classes and identifiers of two resources. If they
share the same class (e.g. `s3.Bucket`) and the same identifiers (e.g.
`name`) then they are considered equal.

```python
>>> b1 = s3.Bucket('boto3')
>>> b2 = s3.Bucket('boto3')
>>> b1 == b2
True
```

Related to equality, this also implements reloading of attributes
after an action has been performed. Imagine the following scenario:

```python
>>> o = s3.Object('boto3', 'test.txt')
>>> o.put(Body='hello')
>>> print(o.last_modified)
datetime(2014, 10, 31, 0, 0, 0)

>>> o.put(Body='hello, world')

>>> print(o.last_modified)
datetime(2014, 10, 31, 0, 0, 20)

>>> o2 = s3.Object('boto3', 'test.txt')
>>> o == o2
True
>>> o.last_modified == o2.last_modified
True
```

Updated documentation and tests to reflect these changes.

9 of 9 new or added lines in 2 files covered. (100.0%)

518 of 533 relevant lines covered (97.19%)

4.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 59.1 31 Oct 2014 10:08PM UTC 0
96.62
Travis Job 59.1
2 59.2 31 Oct 2014 10:08PM UTC 0
96.25
Travis Job 59.2
3 59.3 31 Oct 2014 10:08PM UTC 0
96.62
Travis Job 59.3
4 59.4 31 Oct 2014 10:09PM UTC 0
96.62
Travis Job 59.4
5 59.5 31 Oct 2014 10:10PM UTC 0
96.25
Travis Job 59.5
Source Files on build 59
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #59
  • 0bf93011 on github
  • Next Build on equality (#69)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc